<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body {
        perspective: 300px;
      }
      img {
        display: block;
        margin: 0 auto;
        /* transition: all 1s; */
        animation: xz 2s linear infinite;
      }
      /* img:hover {
        transform: rotateX(-180deg);
      } */
      @keyframes xz {
        100% {
          transform: rotateX(360deg);
        }
      }
    </style>
  </head>
  <body>
    <img src="./imgs/pig.jpg" alt="" />
  </body>
</html>
